package com.yyq.sqlSession;

import com.yyq.pojo.Configuration;

/**
 * @Author yuanyueqiang
 * @Date 2021-11-27 22:30
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory {

    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration){
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
